<template>
	<view class="order-content">
		<view class="content-item">
			<text class="item-name four">事件状态：</text>
			<text :style="{color: colorType[ticketStatus]}">{{ticketStatusObj[ticketStatus]}}</text>
		</view>
		<view class="content-item">
			<text class="item-name">上报时间</text>
			<view style="word-break:break-all;flex: 1;">{{eventInfo.PushTime | formatTime}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">上报人</text>
			<view style="word-break:break-all;flex: 1;">{{eventInfo.CreateUser}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">联系方式</text>
			<view style="word-break:break-all;flex: 1;">{{eventInfo.Tel}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">事件描述</text>
			<view style="word-break:break-all;flex: 1;">{{eventInfo.EventDesc}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">派单类型</text>
			<view style="word-break:break-all;flex: 1;">{{assignType[eventInfo.Isauto]}}</view>
		</view>
		<view v-if="eventInfo.DepartName" class="content-item">
			<text class="item-name">部门机构</text>
			<view style="word-break:break-all;flex: 1;">{{eventInfo.DepartName}}</view>
		</view>
		<view v-if="eventInfo.HandleName" class="content-item">
			<text class="item-name">处理人员</text>
			<view style="word-break:break-all;flex: 1;">{{eventInfo.HandleName}}</view>
		</view>
		<view v-if="eventInfo.Class1Name" class="content-item">
			<text class="item-name">事件类型</text>
			<view style="word-break:break-all;flex: 1;">{{eventInfo.Class1Name}}</view>
		</view>
		<view v-if="eventInfo.Class2Name" class="content-item">
			<text class="item-name">事件小类</text>
			<view style="word-break:break-all;flex: 1;">{{eventInfo.Class2Name}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			eventInfo: {
				type: Object,
				default: () => {}
			},
			ticketStatus: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
				colorType: this.$type.colorType,
				ticketStatusObj: this.$type.ticketStatus,
				assignType: this.$type.assignType,
			}
		}
	}
</script>

<style>
</style>
